:root {
  --blue-deep: #0b3d82;
  --blue-bright: #2e90fa;
  --blue-sky: #dcebff;
  --yellow: #ffd43b;
  --coral: #ff6b6b;
  --coral-soft: #ffe1e1;
  --mint: #3fcfae;
  --mint-soft: #daf7ef;
  --paper: #f6faff;
  --ink: #0b2545;
  --white: #ffffff;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Nunito", sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
.display {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
}
.serif {
  font-family: "Playfair Display", serif;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- NAV ---------- */
.brand-name span {
  color: var(--mint);
}

/* ---------- HERO (SPLIT BOOK LAYOUT) ---------- */
.hero {
  position: relative;
  background: var(--blue-deep);
  overflow: hidden;
  padding: 64px 24px 100px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 92% 10%,
      rgba(255, 212, 59, 0.16) 0,
      transparent 42%
    ),
    radial-gradient(
      circle at 5% 90%,
      rgba(63, 207, 174, 0.28) 0,
      transparent 40%
    );
}
.leaf {
  position: absolute;
  border-radius: 50%;
  opacity: 0.85;
}
.leaf.l1 {
  width: 90px;
  height: 90px;
  background: var(--yellow);
  top: 50px;
  left: 6%;
  opacity: 0.18;
  animation: float 7s ease-in-out infinite;
}
.leaf.l2 {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  bottom: 70px;
  right: 10%;
  animation: float 6s ease-in-out infinite 0.5s;
}
.leaf.l3 {
  width: 30px;
  height: 30px;
  background: var(--mint);
  top: 120px;
  right: 30%;
  opacity: 0.5;
  animation: float 8s ease-in-out infinite 0.2s;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-14px);
  }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 56px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.hero-copy {
  flex: 1 1 420px;
  min-width: 300px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 212, 59, 0.16);
  color: var(--yellow);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12.5px;
  border: 1.5px dashed rgba(255, 212, 59, 0.55);
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--white);
  font-size: 38px;
  line-height: 1.22;
}
.hero h1 .accent {
  color: var(--yellow);
}
.hero .fi-title {
  display: block;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
  color: var(--mint-soft);
  font-size: 19px;
  margin-top: 10px;
}
.hero p.desc {
  color: #dcebff;
  font-size: 15.5px;
  margin: 22px 0 30px;
  line-height: 1.7;
  font-weight: 600;
}
.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--yellow);
  color: var(--blue-deep);
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 6px 0 #d9a900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.15s;
}
.btn-primary:hover {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #d9a900;
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-book {
  flex: 0 0 300px;
  position: relative;
  display: flex;
  justify-content: center;
}
.book-cover {
  width: 280px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -18px rgba(0, 0, 0, 0.55),
    0 0 0 8px rgba(255, 255, 255, 0.05);
  transform: rotate(-4deg);
  transition: 0.3s;
  border: 6px solid var(--white);
}
.book-cover:hover {
  transform: rotate(0deg) translateY(-6px);
}
.book-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4.2;
  object-fit: cover;
}
.book-tag {
  position: absolute;
  top: -14px;
  right: 8px;
  background: var(--mint);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 6px 0 #2ba98b;
  transform: rotate(6deg);
}

.wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  line-height: 0;
}

/* ---------- ABOUT SECTION ---------- */
.about {
  padding: 36px 24px 76px;
  position: relative;
  margin-top: -64px;
}
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}
.kicker {
  display: inline-block;
  background: var(--yellow);
  color: var(--blue-deep);
  font-weight: 800;
  font-size: 12.5px;
  padding: 6px 16px;
  border-radius: 999px;
  transform: rotate(-2deg);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 30px;
  color: var(--blue-deep);
}
.section-head p {
  color: #5b6b85;
  font-weight: 700;
  margin-top: 10px;
  font-size: 14.5px;
}

.about-card {
  background: var(--white);
  border-radius: 26px;
  padding: 36px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 14px 30px -14px rgba(11, 61, 130, 0.25);
  border: 1px solid #dcebff;

  /* Flexbox Layout */
  display: flex;
  align-items: center; /* Vertically aligns image and text */
  gap: 32px;
}
.about-card p {
  font-size: 15px;
  line-height: 1.85;
  color: #334155;
  margin-bottom: 16px;
  font-weight: 600;
}
.about-card p:last-child {
  margin-bottom: 0;
}
.about-card b {
  color: var(--blue-deep);
}

.about-image {
  flex: 0 0 320px;
  max-width: 320px;
}
.about-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(11, 61, 130, 0.15);
}

/* ---------- FEATURES ---------- */
.features {
  padding: 20px 24px 76px;
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feat-card {
  background: var(--white);
  border-radius: 22px;
  padding: 26px 20px;
  text-align: center;
  box-shadow: 0 12px 26px -14px rgba(11, 61, 130, 0.2);
  border: 3px solid transparent;
  transition: 0.2s;
}
.feat-card:hover {
  transform: translateY(-6px);
  border-color: var(--yellow);
}
.feat-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-4deg);
}
.feat-icon svg {
  width: 28px;
  height: 28px;
}
.f1 .feat-icon {
  background: var(--blue-sky);
}
.f2 .feat-icon {
  background: #ffe1e1;
}
.f3 .feat-icon {
  background: var(--mint-soft);
}
.f4 .feat-icon {
  background: var(--mint-soft);
}
.feat-card h3 {
  font-size: 15.5px;
  color: var(--blue-deep);
  margin-bottom: 8px;
}
.feat-card p {
  font-size: 12.5px;
  color: #5b6b85;
  font-weight: 700;
  line-height: 1.55;
}

/* ---------- AUTHORS ---------- */
.authors {
  background: var(--mint-soft);
  padding: 70px 24px;
  position: relative;
  overflow: hidden;
}
.auth-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.auth-card {
  width: 340px;
  background: var(--white);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 10px 24px -14px rgba(63, 207, 174, 0.3);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.auth-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Baloo 2";
  font-weight: 700;
  font-size: 22px;
}
.auth-card:nth-child(1) .auth-avatar {
  background: var(--blue-bright);
}
.auth-card:nth-child(2) .auth-avatar {
  background: var(--mint);
}
.auth-card h4 {
  font-size: 15.5px;
  color: var(--blue-deep);
  margin-bottom: 4px;
}
.auth-role {
  font-size: 11.5px;
  color: var(--mint);
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.auth-card p {
  font-size: 13px;
  color: #5b6b85;
  font-weight: 700;
  line-height: 1.6;
}

/* ---------- GALLERY / PUBLISHING ---------- */
.publish {
  padding: 76px 24px;
}
.pub-grid {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}
.pub-photo {
  flex: 1 1 320px;
  min-width: 280px;
}
.pub-photo img {
  border-radius: 22px;
  box-shadow: 0 20px 40px -18px rgba(11, 61, 130, 0.35);
  border: 6px solid var(--white);
}
.pub-copy {
  flex: 1 1 380px;
  min-width: 280px;
}
.pub-copy h2 {
  font-size: 26px;
  color: var(--blue-deep);
  margin-bottom: 16px;
}
.pub-copy p {
  font-size: 14.5px;
  color: #5b6b85;
  font-weight: 700;
  line-height: 1.75;
  margin-bottom: 14px;
}
.pub-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-sky);
  color: var(--blue-deep);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12.5px;
  margin-top: 8px;
}

/* ---------- CTA ---------- */
.cta {
  background: var(--blue-deep);
  padding: 64px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 80% 20%,
    rgba(255, 212, 59, 0.14) 0,
    transparent 45%
  );
}
.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}
.cta h2 {
  color: var(--white);
  font-size: 26px;
  margin-bottom: 14px;
}
.cta p {
  color: #dcebff;
  font-size: 14.5px;
  margin-bottom: 26px;
  font-weight: 600;
  line-height: 1.6;
}

/* ---------- FOOTER ---------- */


@media (max-width: 900px) {
  .about-card {
    flex-direction: column;
    padding: 28px;
    gap: 24px;
  }
  .about-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .about-card {
    padding: 22px;
    border-radius: 20px;
  }
  .about-image {
    width: 100%;
    max-width: 260px;
    transform: rotate(-3deg);
    border: 6px solid var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.45);
  }
  .about-image img {
    aspect-ratio: 3 / 4.2;
    object-fit: cover;
    border-radius: 0; 
  }
  .feat-grid {
    display: inherit;
    
  }
  .feat-card {
    background: var(--white);
    border-radius: 22px;
    padding: 26px 20px;
    text-align: center;
    box-shadow: 0 12px 26px -14px rgba(11, 61, 130, 0.2);
    border: 3px solid transparent;
    transition: 0.2s;
    margin-bottom: 10px;
  }
}